﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MessageCallAspect.Inspector.Attributes;
using System.Runtime.Remoting.Messaging;
using MessageCallAspect.Demo.Aspect.LicenseEnforce;

namespace MessageCallAspect.Demo.Aspect
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
    internal class LicenseEnforceAspectAttribute : MessageSinkAttribute
    {
        public override IMessageSink CreateMessageSink(IServiceProvider context, object target, IMessageSink nextSink)
        {
            return new LicenseEnforceMessageSink(context, target, nextSink);
        }
    }
}
